#include<stdio.h>
#define SIZE 10
int sump(int * start, int * end);
int main(void)
{
	int m[SIZE] = {20, 10, 5, 39, 4, 16, 19, 26, 31, 20};
	long ans;
	ans = sump(m, m + SIZE-1);
	printf("The totol num of m is %ld.\n",ans);

	return 0;
}

int sump(int * start, int * end)
{
	int t = 0;
	while(start <= end)
	{
		t += *start;
		start++;
	}
	return t;
}
